<html>
<head><meta charset="utf-8"><title>monitoring the gha queue · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html">monitoring the gha queue</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220580516"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580516" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580516">(Dec 21 2020 at 12:57)</a>:</h4>
<p>a problem we have right now is that the github actions queue is not monitored, so we don't know how much concurrency quota we're using at any point in time</p>



<a name="220580533"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580533" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580533">(Dec 21 2020 at 12:57)</a>:</h4>
<p>and we can't get that information easily, as github doesn't expose any UI nor API for that</p>



<a name="220580616"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580616" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580616">(Dec 21 2020 at 12:58)</a>:</h4>
<p>during the weekend I had an idea on how to fetch that information without hammering the github api with requests</p>



<a name="220580719"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580719" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580719">(Dec 21 2020 at 12:59)</a>:</h4>
<p>github supports organization-wide webhooks for check runs, and a webhook is sent when a build is "created" (aka queued) and "completed" (finished)</p>



<a name="220580822"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580822" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580822">(Dec 21 2020 at 13:00)</a>:</h4>
<p>and you were thinking to just keep a running counter and hammer the API like once a day to check it?</p>



<a name="220580835"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580835" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580835">(Dec 21 2020 at 13:01)</a>:</h4>
<p>I wouldn't even check it with the api</p>



<a name="220580859"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580859" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580859">(Dec 21 2020 at 13:01)</a>:</h4>
<p>well we need to reinitialize it after downtime?</p>



<a name="220580870"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580870" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580870">(Dec 21 2020 at 13:01)</a>:</h4>
<p>we can store in-progress builds in postgres</p>



<a name="220580879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/monitoring%20the%20gha%20queue/near/220580879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/monitoring.20the.20gha.20queue.html#220580879">(Dec 21 2020 at 13:01)</a>:</h4>
<p>(at least  - and github webhooks aren't the most reliable)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>